package com.common.www;

import cn.hutool.core.lang.Dict;
import cn.hutool.extra.expression.ExpressionUtil;

public class Test {

    public static void main(String[] args) {
        final Dict dict = Dict.create()
                .set("a", 1)
                .set("b", 2)
                .set("c", 3);

        // -143.8
        final Object eval = ExpressionUtil.eval("a+b*c", dict);
        System.out.println(eval);
    }

}
